using System;
using System.Collections.Generic;
namespace DalatCooking.Core
{
    public abstract class IOrdersRepository
    {
        public abstract int Insert(Orders entity);
        public abstract int Update(Orders entity);
        public abstract bool Delete(Orders entity);
        public abstract bool Delete(int id);
        public abstract List<Orders> FindAll();
        public abstract Orders FindById(int id);
        public abstract Orders Single(int id);
        public abstract Orders FindByName(string name);
        public abstract List<Orders> PagingSql(int pageSize, int pageNum, out int totalRowCount);
        public abstract List<Orders> PagingLinq(int pageSize, int pageNum, out int totalRowCount);
        public abstract bool SetActive(int id);
        public abstract bool SetSortIndex(int id, int isup);
        public abstract bool RemoveSelectedItem(int id);
        public abstract bool RemoveAll();
        public abstract bool RestoreSelectedItem(int id);
        public abstract bool RestoreAll();
        public abstract List<OrderDetail> FindOrderDetail(int orderId);
    }
}